//
//  HXDishesModel.m
//  ZCooking
//
//  Created by 韩旭 on 16/9/9.
//  Copyright © 2016年 HX_. All rights reserved.
//

#import "HXDishesModel.h"
#import "HXTagsModel.h"
@implementation HXDishesModel
- (instancetype)initWithDic:(NSDictionary *)dic {
    self = [super initWithDic:dic];
    if (self) {
        self.tags_info = [[HXTagsModel getTagsModelWithArray:dic[@"tags_info"]] mutableCopy];
    }
    return self;
}
+ (NSArray *)getDishesModelWithArray:(NSArray *)array {
    NSMutableArray *arrAll = [NSMutableArray array];
    for (NSDictionary *dic in array) {
     [arrAll addObject:[HXDishesModel ModelWithDic:dic]];
    }
    return arrAll;
}
@end
